package com.epam.iunna.bookshop.model.service;

import com.epam.iunna.bookshop.model.Item;

public class ItemBean {
    private Item item;
    private Long quantity;
    
    public ItemBean (Item item){
        this.item = item;
        quantity = 1L;
    }
    
    public ItemBean (Item item,Long quantity){
        this.item = item;
        this.quantity = quantity;
    }
    public Item getItem() {
        return item;
    }
    public void setItem(Item item) {
        this.item = item;
    }
    public Long getQuantity() {
        return quantity;
    }
    
    public void increaseQuantity(){
        quantity++;
    }
    
    public void decreaseQuantity(){
        quantity--;
    }
    
}
